package a.e.b;

import java.util.prefs.AbstractPreferences;
import java.util.prefs.BackingStoreException;

public class d
{
  public static int a;
  
  public static final String a(byte[] paramArrayOfByte)
  {
    return new a_().a(paramArrayOfByte);
  }
  
  public static final byte[] a(String paramString)
  {
    return new a_().a(paramString);
  }
  
  private static class a_
    extends AbstractPreferences
  {
    private String a;
    private static final int c = 76;
    
    protected a_()
    {
      super("");
    }
    
    public String a(byte[] paramArrayOfByte)
    {
      putByteArray(null, paramArrayOfByte);
      String str = get(null, null);
      return b(str);
    }
    
    public byte[] a(String paramString)
    {
      int i = g.o;
      if ((i != 0) || (paramString != null))
      {
        if (i != 0) {
          break label35;
        }
        if (paramString.length() != 0) {}
      }
      else
      {
        return new byte[0];
      }
      label35:
      String str = paramString.replaceAll("\\r|\\n", "");
      put(null, str);
      return getByteArray(null, null);
    }
    
    public String get(String paramString1, String paramString2)
    {
      return this.a;
    }
    
    public void put(String paramString1, String paramString2)
    {
      this.a = paramString2;
    }
    
    private static String b(String paramString)
    {
      int m = g.o;
      boolean bool = g.n;
      if (m == 0) {
        if (paramString == null) {
          return null;
        }
      }
      int i = paramString.length();
      if (i <= 76) {
        return paramString;
      }
      StringBuffer localStringBuffer = new StringBuffer();
      int j = 0;
      int k = 76;
      do
      {
        if (k >= i) {
          break;
        }
        String str = paramString.substring(j, k);
        if (m != 0) {
          break label116;
        }
        localStringBuffer.append(str).append("\r\n");
        j = k;
        k = j + 76;
        if (bool) {
          break label115;
        }
      } while (!bool);
      if (m == 0) {
        localStringBuffer.append(paramString.substring(j, i));
      }
      label115:
      label116:
      return localStringBuffer.toString();
    }
    
    protected AbstractPreferences childSpi(String paramString)
    {
      return null;
    }
    
    protected void putSpi(String paramString1, String paramString2) {}
    
    protected String getSpi(String paramString)
    {
      return null;
    }
    
    protected void removeSpi(String paramString) {}
    
    protected String[] keysSpi()
      throws BackingStoreException
    {
      return null;
    }
    
    protected String[] childrenNamesSpi()
      throws BackingStoreException
    {
      return null;
    }
    
    protected void syncSpi()
      throws BackingStoreException
    {}
    
    protected void removeNodeSpi()
      throws BackingStoreException
    {}
    
    protected void flushSpi()
      throws BackingStoreException
    {}
  }
}


/* Location:           E:\idea\
 * Qualified Name:     a.e.b.d
 * JD-Core Version:    0.7.0.1
 */